#include <stdio.h>
#include "libflycache.h"

int main(int argc, const char *argv[])
{

	struct flycache_cluster *cluster = fly_init(); 
	fly_add_server(cluster, "127.0.0.1", 12321); 
	fly_add_server(cluster, "127.0.0.1", 12322); 
	/*fly_add_server(cluster, "192.168.0.2", 12321); */
	/*fly_add_server(cluster, "192.168.0.3", 12321); */

	fly_store(cluster, "xguru", 0, 0, 7, "123 123");
	fly_store(cluster, "isxguru", 0, 0, 6,"dsd123");
	char *value=fly_get(cluster, "xguru");
	printf("%s", value); 
	fly_free(cluster); 
	return 0;
}
